﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProjectsRecentUsedProxy.ascx.cs" Inherits="WebService_Components_ProjectsRecentUsedProxy" %>
<%if (Projects != null && Projects.Count > 0)
  { %>
<div style="margin-bottom: 5px;" class="box">
    <div style="padding-left: 2px; cursor: pointer;" class="header" onclick="ShowHideProjects(this);">
        <%if (Projects != null && Projects.Count > 0)
          {%>
        Recent Used Proxies
        <span style="<%=IsShow?"": "display:none;"%>" class="hide">
            <img style="height: 17px; position: relative; top: 5px; border: none;" src="../themes/skin-<%=GetTogether.Studio.Config.Original.Skin %>/images/up.png" /></span><span
                style="<%=IsShow?"display:none;": ""%>"
                class="show"><img style="height: 17px; position: relative; top: 5px; border: none;"
                    src="../themes/skin-<%=GetTogether.Studio.Config.Original.Skin %>/images/down.png" /></span>

        <%} %>
    </div>
    <div style="<%=IsShow?"": "display:none;"%>">
        <div class="line-sub"></div>
        <table style="width: 100%; line-height: 1.5em;" class="" cellpadding="0px" cellspacing="0px">
            <tr class="header-2">
                <td>Project Name
                </td>
            </tr>
            <tr>
                <td colspan="1">
                    <div class="line-sub">
                    </div>
                </td>
            </tr>
            <asp:Repeater ID="rptResult" runat="server">
                <ItemTemplate>
                    <tr style="<%#Container.ItemIndex==0?"display:none;": ""%>">
                        <td colspan="1">
                            <div class="line-sub">
                            </div>
                        </td>
                    </tr>
                    <tr title="<%#((GetTogether.Studio.Project<GetTogether.Studio.WebService.ProjectParameter>)Container.DataItem).Parameter.Address%>">
                        <td style="vertical-align: top;"><span class="comment">»</span>
                            <a class="a-btn2" href="Edit.aspx?pn=<%#((GetTogether.Studio.Project<GetTogether.Studio.WebService.ProjectParameter>)Container.DataItem).Parameter.ProjectName %>" onclick="sld('dv-projects');"><%#((GetTogether.Studio.Project<GetTogether.Studio.WebService.ProjectParameter>)Container.DataItem).Parameter.ProjectName %></a>
                            <a class="a-btn" href="javascript:;;" style="cursor: pointer;" onclick="AjaxMsg('Edit / Create project',null,null,SerUrl,'WebService/Callback/Projects.aspx?type=2&pn=<%#((GetTogether.Studio.Project<GetTogether.Studio.WebService.ProjectParameter>)Container.DataItem).Parameter.ProjectName %>&get=1','',null,23);">
                                E</a>
                            <a class="a-btn" href="javascript:;;" style="cursor: pointer;" onclick="DeleteProject('<%#((GetTogether.Studio.Project<GetTogether.Studio.WebService.ProjectParameter>)Container.DataItem).Parameter.ProjectName %>');">D</a>
                            <span title="<%#((DateTime)Eval("RecentUsedAction")).ToString( "dd/MMM HH:mm") %>"><%#((DateTime)Eval("RecentUsedAction")).ToString("HH:mm",System.Globalization.DateTimeFormatInfo.InvariantInfo) %></span>
                        </td>

                            </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
</div>
<%} %>